package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCeshiMapper;
import com.ruoyi.system.domain.SysCeshi;
import com.ruoyi.system.service.ISysCeshiService;

/**
 * 测试Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-25
 */
@Service
public class SysCeshiServiceImpl implements ISysCeshiService 
{
    @Autowired
    private SysCeshiMapper sysCeshiMapper;

    /**
     * 查询测试
     * 
     * @param id 测试主键
     * @return 测试
     */
    @Override
    public SysCeshi selectSysCeshiById(Long id)
    {
        return sysCeshiMapper.selectSysCeshiById(id);
    }

    /**
     * 查询测试列表
     * 
     * @param sysCeshi 测试
     * @return 测试
     */
    @Override
    public List<SysCeshi> selectSysCeshiList(SysCeshi sysCeshi)
    {
        return sysCeshiMapper.selectSysCeshiList(sysCeshi);
    }

    /**
     * 新增测试
     * 
     * @param sysCeshi 测试
     * @return 结果
     */
    @Override
    public int insertSysCeshi(SysCeshi sysCeshi)
    {
        return sysCeshiMapper.insertSysCeshi(sysCeshi);
    }

    /**
     * 修改测试
     * 
     * @param sysCeshi 测试
     * @return 结果
     */
    @Override
    public int updateSysCeshi(SysCeshi sysCeshi)
    {
        return sysCeshiMapper.updateSysCeshi(sysCeshi);
    }

    /**
     * 批量删除测试
     * 
     * @param ids 需要删除的测试主键
     * @return 结果
     */
    @Override
    public int deleteSysCeshiByIds(Long[] ids)
    {
        return sysCeshiMapper.deleteSysCeshiByIds(ids);
    }

    /**
     * 删除测试信息
     * 
     * @param id 测试主键
     * @return 结果
     */
    @Override
    public int deleteSysCeshiById(Long id)
    {
        return sysCeshiMapper.deleteSysCeshiById(id);
    }
}
